package com.ldzy.cart;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
public class DemoController {
    @GetMapping("/cart/hello")
    public String hello(HttpServletRequest request){
        String header = request.getHeader("user-info");
        return "cart 9001"+"----"+header;
    }
}
